package com.yuanfengerp.purchase.service;


import com.yuanfengerp.publicUtil.Result;
import com.yuanfengerp.purchase.entity.PurchaseOrder;

import java.util.List;
import java.util.Map;

public interface IPurchaseOrderService {

    //  根据条件查询所有采购订单
    Result<List<PurchaseOrder>> queryPurchaseOrder(Map<String, Object> params);
    //  新增采购订单
    Result<String> addPurchaseOrder(PurchaseOrder purchaseOrder);
    //  查看单条采购订单
    Result<PurchaseOrder> queryPurchaseOrderById(String purchase_order_id);
    //  修改单条采购订单
    Result<String> updatePurchaseOrderById(PurchaseOrder purchaseOrder);
    //  删除单条采购订单
    Result<String> deletePurchaseOrder(String purchase_order_id);
    //  单条审核通过采购订单，接收到的是一个包含出库单ID的数组
    Result<String> updatePurchaseOrderAgree(String purchase_order_id);
    //  单条审核拒绝采购订单
    Result<String> updatePurchaseOrderRefuse(String purchase_order_id);

}
